package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderAddress;
import com.nbsaas.boot.order.api.domain.simple.OrderAddressSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单地址-列表对象转换器
*/

public class OrderAddressSimpleConvert implements Converter<OrderAddressSimple, OrderAddress> {




@Override
public OrderAddressSimple convert(OrderAddress source) {
    OrderAddressSimple result = new OrderAddressSimple();

                result.setOrderNo(source.getOrderNo());
                result.setDistrictName(source.getDistrictName());
                result.setOrderId(source.getOrderId());
                result.setReceiverName(source.getReceiverName());
                result.setPostalCode(source.getPostalCode());
                result.setCityId(source.getCityId());
                result.setProvinceId(source.getProvinceId());
                result.setAddDate(source.getAddDate());
                result.setIsDefault(source.getIsDefault());
                result.setReceiverPhone(source.getReceiverPhone());
                result.setDistrictId(source.getDistrictId());
                result.setCityName(source.getCityName());
                result.setDetailAddress(source.getDetailAddress());
                result.setProvinceName(source.getProvinceName());
                result.setId(source.getId());
                result.setReceiverEmail(source.getReceiverEmail());
                result.setLastDate(source.getLastDate());


    return result;
}

}